<?php
// 连接数据库
// mysqli_connect('localhost:8889', 'root', 'Wyj961012', 'bookstore') or die ('连接失败！');
@$db=new mysqli("localhost:8889","root","Wyj961012","bookstore");
if(mysqli_connect_errno()){
    echo "连接数据库错误";
    exit;
}
// 选择数据库
// mysqli_select_db('bookstore') or die('数据库选择失败');
